home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_1.lha
/
8_1
/
8_1c.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
428b
|
25 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include "8_1a.c" // EXPAND
include <error.h>
ain(int, char**)
for (;;)
{
double a, b;
if (!(cin >> a >> b))
break;
complex c(a,b);
if (!(cout << c))
break;
}
if (!cin.eof())
error("error reading input");
if (cout.bad())
error("error writing output");
return 0;